//
//  SISSNetworkingManager+Progress.h
//  SISSAPP
//
//  Created by 优房网 on 2017/7/7.
//  Copyright © 2017年 优房网. All rights reserved.
//

#import "SISSNetworkingManager.h"
@class SISSBuyerImportantNotiModel;
@class SISSSellerImportantNotiModel;
@class SISSIntermediaryContractModel;
@class SISSBrokerInfoModel;
@class SISSSellerInfoModel;
@class SISSBuyerInfoModel;
@class SISSTenancyContractModel;
@class SISSRentOutModel;
@class SISSTenantInfoModel;
@class SISSAdditionalNodeModel;
@class SISSContractVerifyInfoModel;


@interface SISSNetworkingManager (Progress)


/**
 4.16 追加评价

 @param acrId acrId
 @param content 追加内容
 @param commentType 1：经纪人评价卖家 2：卖家评价经纪人 3：经纪人评价买家 4：买家评价经纪人 5：卖家评价买家 6：买家评价卖家 7：经纪人评价经纪人 8：经纪人评价房东 9：房东评价经纪人 10：经纪人评价租客 11：租客评价经济人
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)insertAdditionalCommentWithAcrId:(NSString *)acrId content:(NSString *)content commentType:(NSInteger)commentType success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;


/**
 4.24.1 更新进度委托合同 (图文上传) PUT请求
 
 @param parameters 上传参数
 @param images 上传图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)updateEntrustContractWithParameters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.26.1 获取房源进度委托合同 GET请求
 
 @param abpId 进度id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestProgressEntrustContractWithAbpId:(NSString *)abpId success:(void(^)(SISSEntrustContractModel *entrustContractModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.26.2.2 获取合同经纪人信息 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestContractBrokerInfoWithSuccess:(void(^)(SISSBrokerInfoModel *brokerInfoModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.26.2.2 根据spId获取合同经纪人信息 GET请求

 @param spId spId
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestContractBrokerInfoWithSpId:(NSString *)spId success:(void(^)(SISSBrokerInfoModel *brokerInfoModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.27.1 获取进度买方重要事项告知书 GET请求
 
 param parameters 参数
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestrProgressBuyerImportantNotiInfoWithParameters:(NSDictionary *)parameters success:(void(^)(SISSBuyerImportantNotiModel *buyerImportantNotiModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.27.2 添加进度买方重要事项告知书
 
 param parameters 参数
 @param images 图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)insertProgressBuyerImportantNotificationWithParameters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.27.3 更新进度买方重要事项告知书 PUT请求
 
 param parameters 参数
 @param images 图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)updateProgressBuyerImportantNotificationWithParameters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.28.1 获取进度卖方重要事项告知书 GET请求
 
 param ahbpId ahpbId
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestProgressSellerImportantNotiInfoWithAhbpId:(NSString *)ahbpId success:(void(^)(SISSSellerImportantNotiModel *sellerImportantNotiModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.28.2 添加进度卖方重要事项告知书
 
 @param parameters 参数
 @param images 图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)insertProgressSellerImportantNotificationWithParameters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.28.3 更新进度卖方重要事项告知书 PUT请求
 
 @param parameters 参数
 @param images 图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)updateProgressSellerImportantNotificationWithParameters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.34.1 获取居间合同 GET请求

 @param ahbpId 房源进度id
 @param adbpId 客源进度id
 @param demandType demandType
 @param houseType houseType
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestIntermediaryContractWithAhbpId:(NSString *)ahbpId adbpId:(NSString *)adbpId demandType:(NSInteger)demandType houseType:(NSInteger)houseType success:(void(^)(SISSIntermediaryContractModel *intermediaryContractModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.34.2 添加居间合同 (图文上传)
 
 @param parameters 上传参数
 @param images 合同图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)insertIntermediaryContractWithParameters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.34.3 更新居居间合同 (图文上传) PUT请求
 
 @param parameters 上传参数
 @param images 合同图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)updateIntermediaryContractWithParameters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.1.25.1  录入二手房买卖合同
 
 @param parameters 参数
 @param images 上传图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)insertBusinessContractWithParameters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.1.25.2 获取买卖合同 GET请求
 
 @param ahbpId 房源进度id
 @param adbpId 客源进度id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestBusinesscontractWithAhbpId:(NSString *)ahbpId adbpId:(NSString *)adbpId success:(void(^)(SISSIntermediaryContractModel *intermediaryContractModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.1.25.3 更新买卖合同 PUT请求
 
 @param parameters 参数
 @param images 上传图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)updateBusinessContractWithParameters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.35.1 新增流程节点 (可图文上传)
 
 @param parameters 参数
 @param images 上传图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)insertAdditionalNodeWithParameters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.35.2 获取新增的流程节点 GET请求
 
 @param ahbpId 房源进度id
 @param adbpId 客源进度id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestAdditionalNodeWithAhbpId:(NSString *)ahbpId adbpId:(NSString *)adbpId success:(void(^)(SISSAdditionalNodeModel *additionalNodeModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.36.1 获取核验状态 GET请求
 
 @param ahbpId 房源进度id
 @param adbpId 客源进度id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestVerifyInfoWithAhbpId:(NSString *)ahbpId adbpId:(NSString *)adbpId success:(void(^)(SISSContractVerifyInfoModel *verifyInfoModel))successBlock failed:(void(^)(NSError *error))failedBlock;



/**
 4.35.1 同步重要事项告知书 GET请求

 @param ahbpId 房源进度id
 @param adbpId 客源进度id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)updateProgresImportantNotificationWithAhbpId:(NSString *)ahbpId adbpId:(NSString *)adbpId houseTpye:(NSInteger)houseType demandType:(NSInteger)demandType success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.39.1 获取居间卖家信息(线下)
 
 @param ID 居间合同id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestIntermediaryContractOfflineSellerInfoWithID:(NSString *)ID success:(void(^)(SISSSellerInfoModel *sellerInfoModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.39.2 获取居间买家信息(线下)
 
 @param ID 居间合同id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestIntermediaryContractOfflineBuyerInfoWithID:(NSString *)ID success:(void(^)(SISSBuyerInfoModel *buyerInfoModel))successBlock failed:(void(^)(NSError *error))failedBlock;

#pragma mark - 2.0

/**
 4.43.2 添加租赁带看记录  (图文上传)
 
 @param parameters 参数
 @param imagesArray 签名图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)insertLeaseTakeLookRecordWithParameters:(NSDictionary *)parameters imagesArray:(NSArray *)imagesArray successBlock:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.43.4 更新租赁进度带看预约记录状态 GET请求
 
 @param ID 带看id
 @param state 1同意 2不同意
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)updateLeaseTakeLookAppointmentStateWithId:(NSString *)ID state:(NSInteger)state success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.43.5 完善租赁进度带看 (图文上传)
 
 @param parameters 参数
 @param imagesArray 签名图片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)updateLeaseTakeLookRecordWithParameters:(NSDictionary *)parameters imagesArray:(NSArray *)imagesArray successBlock:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.43.10  删除租赁带看记录 GET请求
 
 @param ID 带看记录id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)deleteLeaseTakelookWithId:(NSString *)ID success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.46.1 获取租赁合同 GET请求
 
 @param parameters 参数
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestTenancyContractWithParameters:(NSDictionary *)parameters success:(void(^)(SISSTenancyContractModel *tenancyContractModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.46.2 添加租赁合同 (图文上传)
 
 @param parameters 上传参数
 @param imagesArray 上传合同照片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)insertLeaseContractWithParameters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.46.3 更新租赁合 (图文上传) PUT请求
 
 @param parameters 上传参数
 @param imagesArray 上传合同照片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)updateLeaseContractWithParameters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.46.3 获取求租进度租赁合同 GET请求
 
 @param parameters 参数
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestTenantProgressTenancyContractWithParameters:(NSDictionary *)parameters success:(void(^)(SISSTenancyContractModel *tenancyContractModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 4.46.4 添加求租进度租赁合同 (图文上传)
 
 @param parameters 上传参数
 @param imagesArray 上传合同照片
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)insertTenantProgressTenancyContractWithParameters:(NSDictionary *)parameters images:(NSArray<UIImage *> *)images success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;



@end
